﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="service_mmqh.aspx.cs" Inherits="service_mmqh" %>

<%@ Register src="uc/header.ascx" tagname="header" tagprefix="uc1" %>

<%@ Register src="uc/footer.ascx" tagname="footer" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/base.css" rel="stylesheet" type="text/css" />
    <link href="css/service.css" rel="stylesheet" type="text/css" />
    <script src="http://i.ymcps.com/images/float/floatS.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <uc1:header ID="header1" runat="server" /><br />
    <div class="channelLayout">
        <!------ 客服专区 频道导航 start ------>
        <div class="topLine">
        </div>
        <div class="service_title service_bg">
        </div>
        <div class="channelNavBg">
            <div class="hqzx_nav_tb">
                <ul>
                     <li><a href="Default.aspx" class="b">客服首页</a></li>
                    <li><a href="service_video.aspx" class="b">培训视频</a></li>
                    <li><a href="servicehelp/index.aspx" target="_blank" class="b">帮助中心</a></li>
                    <li class="hqzx_nav_cur service_bg">自助服务</li>
                    <li><a href="service_feedback.aspx" class="b">意见反馈</a></li>
                    <li><a href="training.aspx" class="b">各地公告</a></li>
                    <li><a href="training1.aspx" class="b">会场预约</a></li>
                    <li><a href="service_map1.aspx" class="b">全国服务商</a></li>
                </ul>
            </div>
        </div>
        <!------ 客服专区 频道导航 end ------>
    </div>
    <div class="clearok">
    </div>
    <!------ 自助服务 start ------>
    <div class="service_self1 marginTop10 font14 font-weight">
        <img src="images/index_ico2.gif" class="img" />自助服务
    </div>
    <div class="clearok">
    </div>
    <!------ 密码取回 start ------>
    <input id="hidName" type="hidden" runat="server" value="" />
    <div class="self_c marginTop10" id="divmmqh" >
        <div class="self_c_l">
        <div class="self_login" id="login" att="ulogin">
                </div>
            <ul>
                <li att="ulogin"><a id="qkcl">清空处理</a><div class="self_ico">
                    <img src="images/ico_self1.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_xgmm.aspx">修改密码</a><div class="self_ico">
                    <img src="images/ico_self3.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_dqrcx.aspx">到期日查询</a><div class="self_ico">
                    <img src="images/ico_self4.gif" /></div>
                </li>
                <li><a href="service_rjcz.aspx">软件充值</a><div class="self_ico">
                    <img src="images/ico_self5.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_wsjf.aspx">网上积分</a><div class="self_ico">
                    <img src="images/ico_self6.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_wyzs.aspx">我要折算</a><div class="self_ico">
                    <img src="images/ico_self7.gif" /></div>
                </li>
                <li att="ulogin" class="current">密码保护<div class="self_ico">
                    <img src="images/ico_self8.gif" /></div>
                </li>
            </ul>
        </div>
        <div class="self_c_r">
            <div class="self_c_r_c2">
                <ul>
                    <li><span class="coffee font-weight font14">请输入用户注册时填写的手机号<br />
                        密码将以短信形式发送至您手机</span></li>
                    <li class="line"></li>
                    <li><span class="font14 font-weight gray_t">用户名：</span><asp:TextBox ID="user" Style="width: 160px"
                        class="input1" runat="server"></asp:TextBox></li>
                    <li style="line-height: 10px; height: 10px;"></li>
                    <li><span class="font14 font-weight marginTop10 gray_t">手机号：</span><asp:TextBox ID="mobile"
                        Style="width: 160px" class="input1" runat="server"></asp:TextBox></li>
                    <li style="line-height: 10px; height: 10px;"></li>
                    <li><span class="font14 font-weight marginTop10 gray_t">验证码：</span><asp:TextBox ID="code"
                        Style="width: 100px" class="input1" runat="server"></asp:TextBox><img src="common/RegImg.aspx"
                            id="regImg" alt="请点击" /></li>
                    <li style="padding: 20px 0 10px 61px">
                        <asp:ImageButton src="images/btn_ok.jpg" ID="imgbtnmmqh" runat="server" OnClick="imgbtnmmqh_Click" />&nbsp;<img
                            src="images/btn_again.jpg" id="gbtnClear" style="cursor:pointer"/></li>
                </ul>
            </div>
        </div>
    </div><div class="marginTop10"></div>
    <!------ 密码取回 end ------>
    <uc2:footer ID="footer1" runat="server" />
    </form>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        //密码取回
        function Reset() {
            $("#user").val("");
            $("#mobile").val("");
            $('#code').val("");
            $("#regImg").attr("src", "common/RegImg.aspx?id=" + Math.random());
        }
        $(document).ready(function () {
            var name = $('#hidName').val();
            if (name == '') {
                $('#login').html("您好，请登录<a href=\"#\"><img src=\"images/btn_login.jpg\" border=\"0\" /></a>");
                $('#qkcl').removeAttr("onclick");
            } else {
                $('#login').html("欢迎您，<br/>" + name + "用户<br/><a href=\"OutLogin.aspx\" onclick=\"return confirm('确定退出？')\"><img src=\"images/btn_exit.jpg\" border=\"0\" /></a>");
            }
            $('[att=ulogin] a,').click(function () {
                var uname = $('#hidName').val();
                if (uname == '') {
                    document.getElementById("loginFram").style.display = "block";
                    return false;
                }
            });
            $("#gbtnClear").click(function () {
                Reset();
            });
            $("#regImg").click(function () {
                $(this).attr("src", "common/RegImg.aspx?id=" + Math.random());
            })
            $('#imgbtnmmqh').click(function () {
                var user = $('#user').val();
                var mobile = $('#mobile').val();
                var code = $('#code').val();
                if (user == "") {
                    alert('用户名不能为空');
                    $('#user').focus();
                    return false;
                }
                if (mobile == "") {
                    alert('手机号不能为空');
                    $('#mobile').focus();
                    return false;
                }
                var chkMobile = /^(1[3,5,8][0-9]{9})$/;
                if (!chkMobile.test(mobile)) {
                    alert("很抱歉，您填写的手机号码有误，请您重新填写");
                    $('#mobile').val('');
                    $('#mobile').focus();
                    return false;
                }
                if (code == '') {
                    alert("请输入验证码");
                    $('#code').focus();
                    return false;
                }
            });
        });
    </script>
</body>
</html>
